<?php
    include_once "facebook.php";
    include_once "constants.php";

    $me = null;
    
    try {
        $facebook = new Facebook(array(
                    'appId' => FACEBOOK_APP_ID,
                    'secret' => FACEBOOK_SECRET_KEY,
                    'cookie' => true,
                ));
                
        $me = $facebook->api('/me');
    } catch (Exception $o) {
        echo '<pre>';
        print_r($o);
        echo '</pre>';
        exit;
    }

?>